Fixed bug with indexing/value of prob table