fix compile error when the gui_mod flag is on.