bug fix cron scheduler