Fixes for heroku deployment.