time record, bug fix