minor bugfix on item addition