MIDI quantizer bug fix