Fix socket channel definition