Fixed problem of not deleting all items