Fix input field glitches