fix eeprom writing script.