Fixing ws.send being null.