Fixed redirect problem when in 404 page.