fixed an error in precision calculation which results in > 1 precision
scores.