fixed duplication bug