Fixed the duplication support.