fixed counter update at disconnect