Fix header redirect