Fix failed to remove transaction history