fixed issue with cron job failuers in env.