Quick fix to avoid redirect loop on heroku