Fixing client connection counter