Trying to fix errors on deploying on Heroku