Fixed cron lock issue