fix canonical paths