fix type for cron