Fixed bug in setSocketOption()