Redirect bug fix