Correctly set keyframe time