handle zero values in duration histogram