Creates new object instead of updating it - C#