Value data not being updated when duplicate version found - C#