fixed socket error