fix getParentPath issue