fix transactional set duplicate element insertion.