fix offset index in eeprom