Index: trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 8140)
+++ trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 8168)
@@ -294,5 +294,6 @@
         query += " MIN(fZenithDistance), MAX(fZenithDistance), ";
         query += " MIN(fAzimuth), MAX(fAzimuth), ";
-        query += " MIN(fRunStart), MAX(fRunStop), ";
+        query += " MIN(if(fRunStart=0,NULL,fRunStart), ";
+        query += " MAX(if(fRunStop=0,NULL,fRunStop), ";
         query += " ELT(MAX(FIELD(fLightConditionsKEY, 1, 2, 7, 5, 8)), 1, 2, 7, 5, 8) ";
         query += " FROM RunData WHERE ";
