fix Issue 12131 - Struct assign purity error