Not connecting and forgetting my z axis step setting

Since I replaced the Arduino, every time I have problems connecting my machine to my computer.

When I do get it connected I had to redo the calibration every time and every time it forgets and changes the z axis steps/mm.

My x and y stay the corrected values, but the z always goes back to stock settings, why is this and what’s going on