fix header redirects