Fixed socket.io issue