fix for batch array population error