Correct teh f measure calculation