bugfix: rectangle to polygon collision