fix bug

fix socket bug