fixes bug with collision against non existent boxes