fix for redirect.