Fixed bug with backwards sampling caused by distributions::sample_from_likelihoods