fix the bug with web socket tied to the wrong activity