fixed the collision error