bug fix in logbuffer