bug fix for log output shorter than 100 lines