Bugfix for removing a word from a list

This fixes a bug that relates to removing from and then re-adding the same word to a list. When the word was re-added, it would show up twice in the list.