--- node_level_blocks.admin.inc	2010-05-19 20:54:26.000000000 +0200
+++ node_level_blocks.admin.inc	2011-02-08 14:39:59.000000000 +0100
@@ -76,10 +76,13 @@ function node_level_blocks_node_type_for
  * Extra form elements for the node type form.
  */
 function node_level_blocks_fieldset_node_edit_form(&$form, &$form_state) {
-  global $theme_key, $custom_theme;
+  global $theme_key;
+  
+  // set default theme for retrieving regions and blocks
+  $theme_key = variable_get('theme_default', 'garland');  
 
   // If a node is submitted with the 'preview' button,
-  // the data can bne collected using the form state.
+  // the data can be collected using the form state.
   // Othewise the stored nodes, or default values can be used.
   if ($form_state['submitted']) {
     $node_blocks = array();
@@ -142,10 +145,6 @@ function node_level_blocks_fieldset_node
   }
   usort($blocks, '_node_level_blocks_compare');
 
-  // If non-default theme configuration has been selected, set the custom theme.
-  $custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');
-  init_theme();
-
   $block_regions = system_region_list($theme_key) + array(BLOCK_REGION_NONE => '<'. t('none') .'>');
 
   // Remove unused regions for this node type.
