fix the bug in the time mode