fix ws error after deploying to heroku