fix redirect bug
fix redirect bug