Fixed a bug with the third overloaded getProbability() method.