Fix err in cron