fix for cron