fix phenotype counts on mi grid