fix socket type