[TimeManager] Fixed some bugs.