fixed add-cron-job() function