Check bed coating in eeprom. That value will make z move after homing. Also with z homing you should also have
#define ENDSTOP_Z_BACK_ON_HOME 2to allow some back move to adjust to tool offset or different bed coatings or rotation measured. In fact it could be the rotation if the rotation matrix is not 0 it might cause an additional offset. So also reset rotation matrix for first tests.