Fix connection counter