fix make bounds for polygon