fix animation is not updated when speed is changed