v1.0.x - fix counter update

Updating a counter does not work for me on 1.0.4