Fixing generate-data bug with async data processing order