diff --git a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getKeywords_day.xml b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getKeywords_day.xml
index e98b361424d1b81c048b9fdfc57b1e763eb7781d..63c72f2efbe40e6800cfd1f07cd5908637188980 100644
--- a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getKeywords_day.xml
+++ b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getKeywords_day.xml
@@ -17,7 +17,7 @@
 		</goals>
 		<nb_conversions>1</nb_conversions>
 		<revenue>1</revenue>
-		<idsubdatatable>77</idsubdatatable>
+		<idsubdatatable>63</idsubdatatable>
 		<subtable>
 			<row>
 				<label>Yahoo!</label>
diff --git a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getSearchEngines_day.xml b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getSearchEngines_day.xml
index dd7ba88aa3283e75d0dd3fc33a85dce0aaa26b9f..9c2e6a3667d88d943381ec37dc5c0a3057920915 100644
--- a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getSearchEngines_day.xml
+++ b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getSearchEngines_day.xml
@@ -17,7 +17,7 @@
 		</goals>
 		<nb_conversions>1</nb_conversions>
 		<revenue>1</revenue>
-		<idsubdatatable>75</idsubdatatable>
+		<idsubdatatable>61</idsubdatatable>
 		<url>http://search.yahoo.com</url>
 		<logo>plugins/Referers/images/searchEngines/search.yahoo.com.png</logo>
 		<subtable>
diff --git a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getWebsites_day.xml b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getWebsites_day.xml
index 67a97950586432a3ceccbd015d2b332ea46af368..0698a5617f48800ee823c0fe8f91eef738471881 100644
--- a/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getWebsites_day.xml
+++ b/tests/integration/expected/test_OneVisitorTwoVisits__Referers.getWebsites_day.xml
@@ -9,7 +9,7 @@
 		<sum_visit_length>1440</sum_visit_length>
 		<bounce_count>0</bounce_count>
 		<nb_visits_converted>1</nb_visits_converted>
-		<idsubdatatable>80</idsubdatatable>
+		<idsubdatatable>66</idsubdatatable>
 		<subtable>
 			<row>
 				<label>http://referer.com/page.htm?param=valuewith some spaces</label>
diff --git a/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__Referers.getWebsites_day.xml b/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__Referers.getWebsites_day.xml
index ae0e66f612a839499f7788a2b4525e418cbfdbee..c87e034a2fc9c2a45b29180f5a3a7dd87bfc0d64 100644
--- a/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__Referers.getWebsites_day.xml
+++ b/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__Referers.getWebsites_day.xml
@@ -11,7 +11,7 @@
 				<sum_visit_length>0</sum_visit_length>
 				<bounce_count>1</bounce_count>
 				<nb_visits_converted>0</nb_visits_converted>
-				<idsubdatatable>81</idsubdatatable>
+				<idsubdatatable>67</idsubdatatable>
 				<subtable>
 					<row>
 						<label>http://referer.com/page.htm?param=valuewith some spaces</label>
@@ -37,7 +37,7 @@
 				<sum_visit_length>0</sum_visit_length>
 				<bounce_count>0</bounce_count>
 				<nb_visits_converted>0</nb_visits_converted>
-				<idsubdatatable>22</idsubdatatable>
+				<idsubdatatable>8</idsubdatatable>
 				<subtable>
 					<row>
 						<label>http://referer.com/Other_Page.htm</label>
@@ -69,7 +69,7 @@
 				<sum_visit_length>0</sum_visit_length>
 				<bounce_count>1</bounce_count>
 				<nb_visits_converted>0</nb_visits_converted>
-				<idsubdatatable>22</idsubdatatable>
+				<idsubdatatable>8</idsubdatatable>
 				<subtable>
 					<row>
 						<label>http://only-homepage-referer.com/</label>
diff --git a/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__VisitsSummary.get_day.xml b/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__VisitsSummary.get_day.xml
index 4121ae36588cefd7521684ab377e289da613e85b..da2b4d2bc85804be0af8f5578da73884c6678e61 100644
--- a/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__VisitsSummary.get_day.xml
+++ b/tests/integration/expected/test_TwoVisitors_twoWebsites_differentDays__VisitsSummary.get_day.xml
@@ -2,18 +2,18 @@
 <results>
 	<result idSite="1">
 		<result date="2010-01-03">
+			<bounce_count>2</bounce_count>
+			<max_actions>1</max_actions>
+			<nb_actions>2</nb_actions>
 			<nb_uniq_visitors>2</nb_uniq_visitors>
 			<nb_visits>2</nb_visits>
-			<nb_actions>2</nb_actions>
-			<max_actions>1</max_actions>
-			<bounce_count>2</bounce_count>
 		</result>
 		<result date="2010-01-04" />
 		<result date="2010-01-05">
+			<max_actions>2</max_actions>
+			<nb_actions>2</nb_actions>
 			<nb_uniq_visitors>1</nb_uniq_visitors>
 			<nb_visits>1</nb_visits>
-			<nb_actions>2</nb_actions>
-			<max_actions>2</max_actions>
 		</result>
 		<result date="2010-01-06" />
 		<result date="2010-01-07" />