Fixing of bug with collision