fix discarded midi messages