Hide Keyboard Maestro and Hide Others menu items don't work

Sometimes after a macro runs, the Hide items in the Keyboard Maestro menu are greyed out. The key commands do not work. Quitting and launching restores the Hide menu items, but that's a far from ideal workaround. How do I fix this problem?

This problem has occurred in Sierra and High Sierra.

I can't find "Hide items" in any KM menu for Keyboard Maestro 9.0.3 on macOS 10.14.6 (Mojave). Please post the version of KM you are running, and a screenshot of this menu.