fixed the crash bug in logstream