--- block.moduleorig	2011-12-13 15:58:57.115951839 +0100
+++ ./block.module	2011-12-13 16:00:09.816312331 +0100
@@ -369,6 +369,8 @@
       // Non-cached blocks get built immediately. Provides more content
       // that can be easily manipulated during hook_page_alter().
       $build[$key] = _block_get_renderable_block($build[$key]);
+      if (isset($build[$key]['content']['#contextual_links']))
+		$build[$key]['#contextual_links'] = $build[$key]['content']['#contextual_links'];      
     }
     else {
       $build[$key] += array(
