remove infinite redirect