fixed weird socket error