fixed bug when updating cron