small redirect bug fix