So it moves XY before Z?
That GRBL post needs some work. Looks like the same issue here. Use my post processor instead.