correcting the issue of the cron running