Adapt to layersconfig changes