Prevent warning thrown from menu widget