Fix type mismatch with Point and Point2D.