fixing Heroku errors