Fixes syntax error in cron module caused by #6870