fix of websockets communication