Fixing redirect bug.