No problema.
If it still doesn't exactly line up, say it's off by a quarter note or whatever, just open up the melody in the piano roll, select all the notes and slide them where they need to be.

LLOYD S