Why is the page counter in the background of my page wrong after using counter.update()?

I meant I cannot reproduce the bug with provided code. Maybe we should ask @enxinjie