fixed bug in the get_probability function of cobweb3