fix adding/remove group/item