Fix socket overflow