Fix socket binding issue