Fixing heroku errors