Try getting the pen were you want it. Reset the arduino, then run the program.
If it still lifts up, its something with your gcode.
If it works that means your zero points had moved. Usually becuase you moved the head with the lcd or computer vs just moving it by hand.