Fixes for subdomains on heroku