Fix deleting the folder entry.