fix cron task and postinstall task