Fixed replace() method in ItemTable, so that  updated items from the API are also updated in the ItemTable in memory.