fix a directory putted a layout.yaml