fixed layerbutton bug