fix log-lik computation