Fix a problem of noteOn