fix the path bug in diff