diff --git a/nodeblock.module b/nodeblock.module
index 5a92519..a3d6f80 100755
--- a/nodeblock.module
+++ b/nodeblock.module
@@ -448,22 +448,7 @@ function nodeblock_node_insert($node) {
     $themes = list_themes();
     foreach ($themes as $theme) {
       if ($theme->status) {
-        $blocks = array(
-          'nodeblock' => array(
-            $node->nid => array(
-              'info' => $node->title,
-              'module' => 'nodeblock',
-              'delta' => $node->nid,
-              'theme' => $theme->name,
-              'status' => 0,
-              'region' => BLOCK_REGION_NONE,
-              'pages' => '',
-            ),
-          ),
-        );
-
-        drupal_alter('block_info', $blocks, $theme, $blocks);
-        drupal_write_record('block', $blocks['nodeblock'][$node->nid]);
+        _block_rehash($theme->name);
       }
     }
   }
