fix one-off problem with colision detection
python3 compatibility