fix LayerGroup hasLayer