Fix UI glitch.