bugfix for pulsecounter