Index: trunk/xpressme_integration_kit/include/xpress_render.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_render.php	(revision 277)
+++ trunk/xpressme_integration_kit/include/xpress_render.php	(revision 278)
@@ -5,6 +5,11 @@
 {
 	global $xpress_config;
+	
+	$pattern = "<body[^>]*?>(.*)<\/body>";
+	$body_cut = preg_replace("/".$pattern."/s" , '' , $contents);
+
+
 	$pattern = "<head[^>]*?>(.*)<\/head>";
-	preg_match("/".$pattern."/s",  $contents, $head_matches);
+	preg_match("/".$pattern."/s",  $body_cut, $head_matches);
 	$head_str = $head_matches[1];
 	
