num socket bug fix