fixes #3389: keep menu in code