Visual macros reproduce the path you demonstrated; they do not automatically relocate a button after the screen changes.
The likely cause
The window position, display scaling, resolution, zoom, or interface layout probably changed between recording and playback.
Restore the original layout
Return the app to the original monitor, size, zoom, sidebar state, and starting page, then retest. If that setup cannot remain stable, create a new MacroLoop recording for the current layout.
Never let a bad first click continue
Do not compensate by extending the loop and hoping later clicks realign. Stop immediately when the first target is wrong.
THE TAKEAWAY
Fix the screen geometry before changing the recording.