Fixed bug in error rate output being negative.