Fixed a bug in CollisionManager