Report as inappropriate

My kossel has been working fine until I upgraded my computer and installed cura 4.6 (previously I was on 4.4). I wasn't able to add the same profile I had from 4.4 to 4.6.

Now the printer will finish a print successfully, but then instead of returning to home, it will retract over 400mm of filament and then eventually return home and turn off the heaters.

Here is my end code in cura if anyone can help me take a look at it:
M400 ;Free buffer
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 F{speed_travel} Z+1 E-1 ;move Z up a bit and retract filament even more
G90 ;absolute positioning
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off
M107 ;fan off
M84 ;steppers off
G28 ;move to endstop
M84 ;steppers off