Weird midi bug fixes