Fix a problem of calling onMIDISuccess