fix for cron error