Fixed the last cron run id function