Changed bad flag for new flashing