fixed small subset bug