fix time manager a bug