Fix pathmap