fix a bug for mtime estimation