If not a layer group use the layer name

fix #1030
again :-)