Fix UI glitches.