fix case where the exp design includes a random effect.