fix bug caused by redirect router removing