fix factors and keyframe indices