Fixed issue with redirects.