fix socket option error.