Fix for polygon test