Nozzle brush macro only works on second run

See Help with Macro: SET_GCODE_VARIABLE doesnt set my variable - #10 by theophile and following posts