Fix parsing path.