Fixed jerk bug