minor fix for polygon collision