fixed socket.io bug