fixed #126 now only changed attributes get restored