fix issue that crashed app on heroku