Fixed small bug in GenerateEnsembleStatistics to index properly.