fix issue with correctly scoping RankedModel