resolve get correct parent path issue