Setting SET_GPS_GLOBAL_ORIGIN doubles LOCAL_POSITION_NED Z coordinate

Hello there,
Situation: I’m using external navigation system, EK3 params look like this:

Primary is the first one. After FCU wake up it starts to get coordinates, for example, x = 0, y = 0, z = 0.1. In QGC I see in LOCAL_POSITON_NED the same coordinates (but in NED). But after I send SET_GPS_GLOBAL_ORIGIN command, Z coordinates doubles! From 0.1 to 0.2, it’s stable behavior with any initial Z coordinate.

Why is this happening? I need to set origin in order to fly in GUIDED mode, but this Z offset is ruining my plan.