Fixed error with header location

Fixed the error for the Header redirect.