fix empty subset bug