Fixed issue with EnsureSharedAttributeSets (changes were not saved automatically)