fixed problem with WebSocket