Fix Macro Menu

Else on clicking on category name this will double it but with an offset
so we are seeing two time the same name overlapping do to the offset.
Moreover, it's prevent user clicking on the next macro category when the
previous macro category is open.
Merge pull request #1090 from matheod/fixMacroMenu

Fix Macro Menu