Collision box generation fix