Likelihood bugfix