Fixed bug: historical bit was flipped, affecting PBF output.