fixed socket issue