fixed the layer action