Fixing heroku crash