I solved it. I had an exception for mobile devices. Mobile devices did not get the counter from the server but from the local time of the device. Now everything will work.
I forgot to told you about the device i am using.
It would be made easier , if i told you i was using android :)
Anyway cheers