fixed bugs with strings in probabilitiy