fix up broken ref in AddLayers plugin