fixing vars used in cron