Fix LDA logLikelihood calculation.