--- lily/parser.yy.org	2005-07-17 11:56:35.000000000 +0900
+++ lily/parser.yy	2005-07-17 23:25:49.000000000 +0900
@@ -625,8 +627,16 @@
 
 lilypond_header_body:
 	{
-		$$ = ly_make_anonymous_module (be_safe_global);
-		THIS->lexer_->add_scope ($$);
+		SCM id = THIS->lexer_->lookup_identifier("$globalheader");
+		if (ly_c_module_p (id)){
+			// if the header exists, then comes here.
+			THIS->lexer_->add_scope(id);
+			$$ = id;
+		}else{	
+			/* org code */
+			$$ = ly_make_anonymous_module (be_safe_global);
+			THIS->lexer_->add_scope ($$);
+		}
 	}
 	| lilypond_header_body assignment  {
 		
