fix conn count bug