Deleted text in a list breaks setting of list attributes