fix -no-duplicate option