Well, the picture does not change anything. This is a home grown issue that you are using macros that are saving an arbitrary z-offset value (no clue where it is set, maybe in the slicer start code) and then this offset gets applied.
This offset is persistent as your macros are saving it to a file and reloading it on printer start.
If you know what these macros are doing and if you have a good reason to use them, then you should be able to fix it.
If you just copied and pasted these macros from somewhere and you do not know what and how to handle them, then I suggest to delete them.