Fix a few bugs with the bloom filter