Why are barlines misplaced and rhythms incorrect?
Some MIDI files are recorded without reference to a metronome, that is, without use of a “click track”. Notation cannot correctly analyze the rhythms in such MIDI files, nor can most other music notation programs. If you want sheet music for the song, you may need to search for another file of the song, using one of the search engines on our MIDI File Search Engine page.