Fixing online /offline count which exceeds or decreases above max friends or below 0 respectively
 merge