Fix deleting last item/store bug, and it wasn't clearing the list properly