Fix error while deploying to Heroku