fix a bug about the time