fix failureHandler for redirect