             guard tableData[1].first(where: isPasswordDelimiterCellData) == nil else {
                 return
             }
-            tableData[1].insert([.type: PasswordEditorCellType.passwordGroupsCell], at: tableData[1].endIndex - 1)
+            tableData[1].insert([.type: PasswordEditorCellType.passwordGroupsCell], at: tableData[1].endIndex)
         case .xkcd:
             tableData[1].removeAll(where: isPasswordDelimiterCellData)
         }

            ],
            [
                [.type: PasswordEditorCellType.fillPasswordCell, .title: "Password".localize(), .content: password?.password ?? ""],
                [.type: PasswordEditorCellType.passwordLengthCell],
                [.type: PasswordEditorCellType.passwordUseDigitsCell],
                [.type: PasswordEditorCellType.passwordVaryCasesCell],
                [.type: PasswordEditorCellType.passwordUseSpecialSymbols],
                [.type: PasswordEditorCellType.passwordFlavorCell],
            ],
            [
                [.type: PasswordEditorCellType.additionsCell, .title: "Additions".localize(), .content: password?.additionsPlainText ?? ""],

        scanQRCodeCell?.selectionStyle = .default
        scanQRCodeCell?.accessoryType = .disclosureIndicator

        passwordFlavorCell = UITableViewCell(style: .default, reuseIdentifier: "default")
        passwordFlavorCell?.textLabel?.text = "PasswordGeneratorFlavor".localize()
        passwordFlavorCell?.selectionStyle = .none

        let passwordFlavorSelector = UISegmentedControl(items: PasswordGeneratorFlavor.allCases.map { $0.localized })
        passwordFlavorSelector.selectedSegmentIndex = PasswordGeneratorFlavor.allCases.firstIndex(of: passwordGenerator.flavor)!
        passwordFlavorSelector.addTarget(self, action: #selector(flavorChanged), for: .valueChanged)
        passwordFlavorCell?.accessoryView = passwordFlavorSelector
    }

    override func viewDidLoad() {
