fix socket data