fixing bug with two-way ANOVA