Fixed sortpaths