Fix duplicated separator menu item bug