fix a bug for startime