Moving StatsBox for Multiple Histograms

I’ve been reading several topics on this forum for a solution to my problem but I haven’t yet figured it out.

Below is a simplified snippet from my macro. I have a 2D array of histograms. I’m printing them onto canvases and I want to move the stats box on each of them. This macro will work for the first three histograms, then root crashes. I’ve tried several variations of this code with the same results each time.

	TCanvas *C1 = new TCanvas("c1","c1");
	for(int i =0; Wbin < toti; i++){
		C1->Divide(3,2);
		for(int j=0; j < totj; j++){
			C1->cd(j+1);
			hh[i][j]->SetMaximum(1);
			hh[i][j]->SetMinimum(-1);
//			TPaveStats *st= (TPaveStats*)hh[i][j]->GetListOfFunctions()->FindObject("stats");
//			st->SetX1NDC(0.1);
//			st->SetX2NDC(0.9);
			hh[i][j]->Draw();
		}
		char Name[15];
		sprintf(Name,...);
		C1->Print(Name);
		C1->Clear();
	}

Have you seen [url=https://root-forum.cern.ch/t/how-to-move-statistics-box-when-using-draw-sames/5139/1 old thread[/url]?

Yes I have and that’s what I based my macro off of.