Z axis not following gcode

Has any experienced their Z axis not following the g code while cutting?
When cutting , after the first cut z doesn’t make it all the way back to the clearance plane, so it cuts what it just has cut. Movement is agreeing with gc but not with the gcode

If you suspect the gcode, post a portion of it.