Fixed keypoint selection error