fix corner case with interaction terms, when using a subset where the factor is not used.
fix corner case with interaction terms, when using a subset where the factor is not used.

ppavlidis/baseCode,ppavlidis/baseCode