fix save to eeprom