bug fix in log timing