Fixes to eeprom