fix invalid structure