subset bug fix