small fix for redirects