Car on board computer.

First of all sorry for posting like this, I'm a beginner with Arduino and Nextion too.

Function EEPROM.writeInt works good, but that means i should write distance on address 2 then? so it won't overwriting it?

But still, why does it display on Nextion same value on speed and max speed while I'm testing it on the car?

memset(buffer, 0, sizeof(buffer));  // clear buffer
  itoa(speed, buffer, 10);
  umid.setText(buffer);

  memset(buffer, 0, sizeof(buffer));  // clear buffer
  itoa(max_speed, buffer, 10);
  textNumber.setText(buffer);
  
  memset(buffer, 0, sizeof(buffer));  // clear buffer
  itoa(traveled_distance, buffer, 10);
  temp.setText(buffer);

Is this part correct?