Fix GUI geometry glitches