fix lingering total bug