fix socket call