Minor fix in cron feature