directory->getParent pointer fix