Fix problem in cron