fixed typo in addOrRemoveItem