Fixed a bug where single word tags can be selected twice when editing the tags of an item.

Closes #11.