Fixes for Heroku deployment.