Fix error in cron script