fixing for gradebook cron script