solved lag problem when targetVelocity is reached