fix a bug where the layer was overwriting custom paths config