fix some parallel probelm
fix some errors in markduplicates