More in app purchase fixing.
v4.
Fixed stack overflow when setting maxes or training maxes to specific values