getLoglikelihood another fix