Fix visibility of menu macro

This is needed to avoid the fact that every new domain re-register
the macro as global leading to duplicated menu bars.