 
 // MARK: Identification type keyboard fix
 extension IdentificationViewController {
-    private func getKeyboardType() -> UIKeyboardType {
+    private func updateKeyboard() {
         guard let identificationType = identificationType else {
-            return UIKeyboardType.default
-        }
-        return identificationType.isNumberType() ? UIKeyboardType.numberPad : UIKeyboardType.numbersAndPunctuation
+            numberTextField.keyboardType = .default
+            return
+        }
+        if identificationType.isNumberType() {
+            numberTextField.keyboardType = .numberPad
+        } else {
+            numberTextField.keyboardType = .numbersAndPunctuation
+        }
     }
 }

        numberTextField.addTarget(self, action: #selector(IdentificationViewController.editingChanged(_:)), for: UIControl.Event.editingChanged)
        self.setupInputAccessoryView()
        identificationType = self.identificationTypes.first
        numberTextField.keyboardType = getKeyboardType()
        textField.text = self.identificationTypes.first?.name
        self.numberTextField.text = ""
        self.remask()

    var callback : (( PXIdentification) -> Void)?
    var errorExitCallback: (() -> Void)?
    var identificationTypes: [PXIdentificationType]!
    var identificationType: PXIdentificationType? {
        didSet {
            self.updateKeyboard()
        }
    }

    //identification Masks
    var identificationMask = TextMaskFormater(mask: "XXXXXXXXXXXXX", completeEmptySpaces: false, leftToRight: false)
