fix keypoints extraction