Fix bug in bitArray generation - wasn’t incrementing index during scan.