fixed a bug: adding an item with a tag didn't work, only updating it.