fix bugs about cron task