Fixed a bug with collision layer != to main layer