maxFeature (count) bug