Fix requires of cron and a bad call to getMinDate