fix problems in cron