bug fix to time printing