Fix arguments in addItem and removeItem