type check in HistoryEntry did not work for unconfirmed transactions