Deconstruct shell and construct back

Hello,
I have begun implementing the FEM API into my daily operations. However, I am encountering difficulties with what should be the simplest task. The problem occurs after decomposing a shell element (in this case, a simple wall) which has four edge connections, each with different stiffnesses and IDs, in the FEM model. After plugging it back into the “compose wall”, I end up with four walls instead of one.

Could you please offer me any advice on this issue?