fixing some keypoint matching issues