Fix creation of parent nodes when refiling.