another fix for waitcounter