diff --git a/gio/gmenumarkup.c b/gio/gmenumarkup.c
index bde3989f4..c0df3b62d 100644
--- a/gio/gmenumarkup.c
+++ b/gio/gmenumarkup.c
@@ -138,19 +138,20 @@ g_menu_markup_start_element (GMarkupParseContext *context,
#define STRING G_MARKUP_COLLECT_STRING
#define NO_ATTRS() COLLECT (G_MARKUP_COLLECT_INVALID, NULL)
- if (!(state->frame.menu || state->frame.menu || state->string))
+ if (!(state->frame.menu || state->frame.item || state->string))
{
/* Can only have