Fix bug when closing the parent registry path