Fixed bug where list was deleted on updating the view