fixed an overflow bug in the gui-log