Re-order integer arithmetic to correct value.