fixed small error in midi parser