Fixes invalid path in path export