Fixed cron problem

wrong variable in 2 cases