Is there any way to fix this?
Yes, sure! All you need to do is to THINK DATAFLOW…
When you want to execute that method node AFTER all the other code then you must enforce execution order. To do so you should employ DATAFLOW - one of the easiest option is to use the error wire to set the execution order!
(When you don't know this part of LabVIEW then I advise to (re)visit the Training Resources offered at the top of the LabVIEW board.)
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019