Bug - counter error

We found the way to reproduce it and fixed it. Thanks for pointing it out.