Redirect bug fixed