fix received bytes count bug