Fixed a bug with the application of instruments in the melody.