log time bug fix