redirect bug fixed