fixed indexing problem. Probabilities update and display correctly.