G32 Problems

I am running smoothie on my 3d printer. The Script I am running is:

G28 ; home all axes
M280 P0 S160 ; clear probe status
M280 P0 S10 ; deploy probe
G32 ; run firmware mesh leveling
M280 P0 S90 ; retract probe
G1 X5 Y5 Z0.8 F1800 ; move to front corner of bed
G92 E0 ; reset extruder position
G1 X100 Z0.3 E20 F1000 ; purge hot end
G92 E0 ; reset extruder position
G1 E-2 F3600 ; retract filament

But I can not seem to get the Auto leveling to run.

And if I do the G32 from the Home position it just goes straight done and crashes because the probe id off the bed.

Anyone have any ideas?

Can we see your config and have more info about the machine ?