Fix EEPROM flag handling