fixed max rederects control

Signed-off-by: Jack <jack.wgm@gmail.com>