fix server crash on heroku