Correct some redirect behavior