Bug fix in deleteSelectedKeyFrames()