Fix Socket NameError.