fixed bug in socket data receving
fixed bug in socket data receving