diff --git a/src/main/java/org/olat/course/statistic/PostgreSQLTempStatTableCreator.java b/src/main/java/org/olat/course/statistic/PostgreSQLTempStatTableCreator.java
index a3c3b47e85fc3c20bb64d9b2d55811b001078bdd..79167c35213da221a49ba9a88b739b3ea228b10f 100644
--- a/src/main/java/org/olat/course/statistic/PostgreSQLTempStatTableCreator.java
+++ b/src/main/java/org/olat/course/statistic/PostgreSQLTempStatTableCreator.java
@@ -55,9 +55,9 @@ public class PostgreSQLTempStatTableCreator implements IStatisticUpdater {
 		final long startTime = System.currentTimeMillis();
 		log_.info("updateStatistic: dropping o_stat_temptable if still existing");
 		try {
-			jdbcTemplate.execute("drop table o_stat_temptable;");
+			jdbcTemplate.execute("drop table if exists o_stat_temptable;");
 		} catch (Exception e) {
-			//
+			log_.error("Cannot drop the temporary table", e);
 		}
 		
 		try{
diff --git a/src/main/java/org/olat/course/statistic/StatisticUpdateManagerImpl.java b/src/main/java/org/olat/course/statistic/StatisticUpdateManagerImpl.java
index 864b8a01e98cba0625d6ac1f11810ed67fc08d76..1bcfb0c648cad48f4709721073c896af38cafe76 100644
--- a/src/main/java/org/olat/course/statistic/StatisticUpdateManagerImpl.java
+++ b/src/main/java/org/olat/course/statistic/StatisticUpdateManagerImpl.java
@@ -151,8 +151,6 @@ class StatisticUpdateManagerImpl implements StatisticUpdateManager, GenericEvent
 					
 					Date lastUpdatedDate = new Date(lastUpdatedInMilliseconds);
 					Date nowDate = new Date(nowInMilliseconds);
-					
-					System.out.println(lastUpdatedDate + " :: " + nowDate);
 
 					log_.info("updateStatistics: starting the update");
 					DBFactory.getInstance().intermediateCommit();