Fix to get the child of the prefix after deleting