fix bug for pubtime