Fix for gui.lua