corrected get-last-melody-event error