Index: trunk/ippToPsps/jython/forcedobjectbatch.py
===================================================================
--- trunk/ippToPsps/jython/forcedobjectbatch.py	(revision 37551)
+++ trunk/ippToPsps/jython/forcedobjectbatch.py	(revision 37917)
@@ -180,8 +180,12 @@
         for filter in filters:
             # now do a sum of n[filters], but do not include the ones with -999
-            sql  = "UPDATE ObjectThin "
-            sql += "SET nDetections = nDetections + n" + filter[1]
+            sql  = "UPDATE ForcedMeanObject"
+            sql += "SET nDetections = nDetections + " + filter[1] +"nTotal "
             sql += " WHERE n" + filter[1] + " != -999"
             self.scratchDb.execute(sql)
+            try: self.scratchDb.execute(sql)
+            except:
+                self.logger.errorPair("failed update MeanObject nDetections", sql)
+                raise
 
     '''
