Fixed backport for maxNumberOfFeaturesForPreview