Fix for client can't connect to the websocket