fix log-likelihood