fix loglikelihood some time shows 0