Index: src/java/org/apache/nutch/indexer/DeleteDuplicates.java
===================================================================
--- src/java/org/apache/nutch/indexer/DeleteDuplicates.java	(revision 543066)
+++ src/java/org/apache/nutch/indexer/DeleteDuplicates.java	(working copy)
@@ -121,7 +121,7 @@
         return this.hash.compareTo(that.hash);
       } else if (this.time != that.time) {      // prefer more recent docs
         return this.time > that.time ? 1 : -1 ;
-      } else if (this.urlLen != this.urlLen) {  // prefer shorter urls
+      } else if (this.urlLen != that.urlLen) {  // prefer shorter urls
         return this.urlLen - that.urlLen;
       } else {
         return this.score > that.score ? 1 : -1;
Index: src/java/org/apache/nutch/crawl/CrawlDbReader.java
===================================================================
--- src/java/org/apache/nutch/crawl/CrawlDbReader.java	(revision 543066)
+++ src/java/org/apache/nutch/crawl/CrawlDbReader.java	(working copy)
@@ -301,7 +301,7 @@
         } else if (k.equals("scx")) {
           LOG.info("max score:\t" + (float) (val.get() / 1000.0f));
         } else if (k.equals("sct")) {
-          LOG.info("avg score:\t" + (float) ((double) (val.get() / totalCnt.get()) / 1000.0));
+          LOG.info("avg score:\t" + (float) ((((double)val.get()) / totalCnt.get()) / 1000.0));
         } else if (k.startsWith("status")) {
           int code = Integer.parseInt(k.substring(k.indexOf(' ') + 1));
           LOG.info(k + " (" + CrawlDatum.getStatusName((byte)code) + "):\t" + val);
