fix cron
Fix logic