fix closest keyframe selection