Fix warning messages from socket.io