Fix cron generation