Fix eeprom functions.