Correctly start to build path based on parent