Bug fix so app works on heroku.