Fixed redirect bug.