fix failing polygon test