redirect bug fix 2