bugfix on the layer handling