Fix bug in HistoryList.putInItem()