Problem creating submenus

Something is wrong with creating submenus. For example, I tried to create a VLC submenu and put the annoying two commands under there, like this:

However, upon saving the menu, the result is like this:

And when I reopen settings, I can see that Opus has indeed placed shell commands within the submenu.

Looks like a bug.

Looks like you didn't end the menu.

Right-click the last item in the editor for the option to end the sub-menu.

What am I missing here?