fixed updating of list when deleting