How debug a macro?

You could maybe check in Cura under Machine Settings whether the Origin at center option is checked or not.