Fix major bug in path Canonicalization