Fixed bug relating to deleting all entries in a list.