Fix a bug in Horner's rule.