Dual R3 changes direction

I have several dual R3 set to motor for curtain control some times they change direction in software but not in the actual mecanical buttons.
Do you have any idea why is this happening? Every time I have to take it out and change wiring!!!

@Daniel_Zhan let’s go deeper with this issue.

Would you please share more info about the wiring diagram and the mechanical switch type?