Fixed warning in menus when using separators