fixed the bad block table creation