Correct "error on final window" glitch