@phaedrux thanks, i revised my custom end gcode which is where those lines were coming from and seems to fix the issue.
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600 ;END Move print head up{endif}
G1 X5 Y{print_bed_max[1]*0.8} F{travel_speed*60} ;END present print
{if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+70, max_print_height-10)} F600 ;END Move print head further up{endif}
{if max_layer_z < max_print_height*0.6}G1 Z{max_print_height*0.6} F600 ;END Move print head further up{endif}
M140 S0 ; turn off heatbed
M104 S0 ; turn off temperature
;M107 ; turn off fan
M84 X Y E ; disable motors