Fix bug where collision is not accurate