fixed a bug in Schematic util, layers were saved incorrectly giving them wrong keys in hashmaps