Fixing the Gui rendering