Addressing heroku errors