fixing log-buffer issue