fix socket server problem