Port fix for Heroku env