fix bad block warning bug