fix error in log processing