Fixed cron email bug