diff --git a/rdfui/rdfui.module b/rdfui/rdfui.module
index 01b4390..0b283b8 100644
--- a/rdfui/rdfui.module
+++ b/rdfui/rdfui.module
@@ -341,7 +341,7 @@ function rdfui_form_field_ui_field_edit_form_submit($form, &$form_state) {
  */
 function rdfui_form_node_type_form_submit($form, &$form_state) {
   $entity_type = 'node';
-  $bundle = $form_state['input']['type'];
+  $bundle = $form_state['values']['type'];
   // We only need to call _rdfui_mapping_save once because it checks whether
   // rdf_type is set in the form before saving the field value.
   _rdfui_mapping_save($form_state, $entity_type, $bundle, 'title');
