Fix a bug in the classifier that caused loss of precision.