Corrected bug appearing when trying to modify the type of a sub-element of a structure