fix bug in GUI demo in mode=noserver