fix layers data structure for composer