fixed error with non existing probabilities in logdb