Fix for cron job