Corrected bitset implementation.