Nozzle temp not resetting

I’m setting up a print with PETG and I want the nozzle temp to be 240 C which I set in CURA 5.10, but when the print starts it puts the Nozzle at 260 C which is what it was set on during the last print. I checked the GCODE and M104 is set 240. Even if I reset the temp on the built-in control pad it reverts to 260.
Any ideas as to what might be wrong?

I seemed to have fixed my own problem. I did two things 1) I unplugged the printer from the AC outlet, 2) I erased the SD card (it had a lot of sliced pints on it) then re-sliced the STL file. Now all seems to be working.