Also fix ends-issue if  ENSEMBLE_DEBUG disabled