fix corrupted path patterns