fix layerchange