bugfix: forgot to reset  counters