diff --git a/nodeblock.module b/nodeblock.module
old mode 100755
new mode 100644
index d67a79c..b76acbb
--- a/nodeblock.module
+++ b/nodeblock.module
@@ -262,11 +262,11 @@ function nodeblock_block_view($delta = '') {
     return;
   }
   $settings = nodeblock_block_variable_get_values($delta, $node->type);
-  $lang = LANGUAGE_NONE;
+  global $language;
+  $lang = $GLOBALS['language']->language;
   // if the node type is translatable, try to load the node with the appropriate
   // language from the translation set.
   if (module_exists('translation') && translation_supported_type($node->type)) {
-    global $language;
     $translations = translation_node_get_translations($node->tnid);
     $lang = $language->language;
     $nodeblock_translation_fallback = variable_get('nodeblock_translation_fallback_'.$node->nid, '0');
