Fixed duplication bug.