minor fixed on the calls to __redirect function