Fix typo in new segment / handle hit-testing code.