The added Homing Z function in the load filament macro leads to the filament not being loaded if the printer is not homed beforehand. Best would be(in my opinion to remove those bits of code ore just add homing X and Y without Z so that the printhead would move to a parking area to purge the filament and not disturb the print in case of a filament swap mid print