Fix socket listener