fixing breakage for redirect