fixing small error on time logging