Macro target detection workaround