fixed bug with reset_gui()