fixed a bug while handling unexpected log messages