Fixed new map creation crash by properly initializing layer data again.