Fixed wrong bit array size calculation.