redirect bug fix.