fixes another redirect bug.