fixed no datetime error