redirect fix for heroku