Fix for redirects.