fixed velocity > 127 bug