Fixes a path.