fixed bug with cron export