fix histogram template
check for incorrect values in timers