fix bug of dbScan code