fix severe bug that the old EEPROM position was used to write the packetcounter