when deleting last node, act like when a new file is created