diff --git a/rhythmdb/rhythmdb-import-job.c b/rhythmdb/rhythmdb-import-job.c
index c201716..f1d3bbd 100644
--- a/rhythmdb/rhythmdb-import-job.c
+++ b/rhythmdb/rhythmdb-import-job.c
@@ -664,10 +664,12 @@ impl_get_property (GObject *object,
 		if (job->priv->scan_complete == FALSE) {
 			g_value_set_string (value, _("Scanning"));
 		} else {
-			g_value_take_string (value,
-					     g_strdup_printf (_("%d of %d"),
-							      job->priv->processed,
-							      job->priv->total));
+			if (job->priv->total) {
+				g_value_take_string (value,
+						     g_strdup_printf (_("%d of %d"),
+								      job->priv->processed,
+								      job->priv->total));
+			}
 		}
 		break;
 	case PROP_TASK_PROGRESS:
