Fix a bug in chance.weighted where the first weight is larger than the second