Only save changes if there are any