Fixed minor issue with redirects