Fixed a bug in the log parser