Fix: Bug in calculation of precision and recall