fix error in gui main.c