Fix a bug about logging the time when typing test