fixed issue in cron job that would occasionaly break order processing