fix small two bugs

* adding and removing attributes should work now
* save didn't use deepcopy to remember attributes