fix bug of cron job