fix inf redirect