fixed socket disconnected bug