Fix a few cron bugs