fix bugs of log parser