Better handling of bad sectors files