fix issue with not correctly scoping the RankedModel