fixed bug with resetting object when save is triggered and object is not modified