Removal of badblocks