Fix midi min max calcualtion. Fix level1