redirect bug fix