fix initialization of probabilities