Fixed an issue which made setCollisionLayers never work
Backup before returning to original version