fixed bug in daily cron