It sounds like a programming bug to me too.
I suggest you take this to a CoreXY or software forum, since I don't think it's related to stepper motors per se, so you're more likely to get a useful answer there.
I suggest you take this to a CoreXY or software forum, since I don't think it's related to stepper motors per se, so you're more likely to get a useful answer there.