Solved createCollision bug