Corrected bug in websocket notification