Fixed layer init, map save/load works.