Fix list item removal bug