diff --git a/daemon/src/history/historyitem.cpp b/daemon/src/history/historyitem.cpp
index 925f3148fa0faa7cf1bb3aa0f148cb86366cca23..ae6440941017f62d2c776c1f52143225f651741f 100644
--- a/daemon/src/history/historyitem.cpp
+++ b/daemon/src/history/historyitem.cpp
@@ -76,6 +76,12 @@ HistoryItem::HistoryItem (std::string serialized_form)
 		case 3: // The start timestamp
 			_timestamp_start = tmp;
 			break;
+        case 4: // The end timestamp
+            _timestamp_stop = tmp;
+            break;
+        case 5: // The ID
+            _id = tmp;
+            break;
 		case 6: // The account ID
 			_account_id = tmp;
 			break;
@@ -95,9 +101,6 @@ HistoryItem::HistoryItem (std::string serialized_form)
 
         indice ++;
     }
-
-    _id = "";
-    _timestamp_stop = "";
 }
 
 HistoryItem::~HistoryItem ()