Fixed a memory bug in the collisions code. But there is still something wrong?