Fix tf calculation
max_co_occurrence wasn't set to zero each iteration