--- FuzzyOcr/Config.pm  (revision 100)
+++ FuzzyOcr/Config.pm  (working copy)
@@ -442,7 +442,7 @@
     push (@cmds, {
         setting => 'focr_autosort_buffer',
         default => 10,
-        type => $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL
+        type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC
     });
     push (@cmds, {
         setting => 'focr_mysql_host',
@@ -634,10 +634,9 @@
         }
     }
     unless ($conf->{focr_skip_updates}) {
-        use DBI;
-        use MLDBM qw(DB_File Storable);
-        use MLDBM::Sync;
         if ($conf->{focr_enable_image_hashing} == 2 and -r $conf->{focr_digest_db}) {
+            use MLDBM qw(DB_File Storable);
+            use MLDBM::Sync;
             my %DB; my $dbm; my $sdbm; my $err = 0;
             my $now = time - ($conf->{focr_db_max_days}*86400);
             $sdbm = tie %DB, 'MLDBM::Sync', $conf->{focr_db_hash} or $err++;
@@ -702,6 +701,9 @@
             }
         }
         if ($conf->{focr_enable_image_hashing} == 3 and defined (my $ddb = get_mysql_ddb())) {
+            use DBI;
+            use MLDBM qw(DB_File Storable);
+            use MLDBM::Sync;
             my $db   = $conf->{focr_mysql_db};
             my $tab  = $conf->{focr_mysql_hash};
             my $file = $conf->{focr_db_hash};

