Fix write-attribute transformer