Fixed a bug with how we determine bitset indices.