Bug fix: resolve duplication when multithread specified on command line