fixed some websocket errors