simulator: fixes qi/pi bug on the h0/alpha0 debug calculations