Update simplifyPath