bugfix for ensemble