Fix misplaced global_max compuation in q3.k3.