Saving a stopped print

#1
I had a print that ran out of filament when I wasnt watching. I found the gcode height where it stopped and I found how to edit the g-code to resume where it ran out of filament. My problem now is the script sets the height I want to print at as zero instead of 290.8. How to set the z axis to start at the correct height?