Collision bug is finally solved.