bug fix for gui cmds