consider case of 0 keypoint