time bug fix