Fix raw eeprom buffer handling