fix update with cron