Trouble with changing parent of objects

I create more screens on Squareline and on screens use panels.
Front UI stay on one only screen and showed object i try change with call

      lv_obj_set_parent(ui_PanelMain ,ui_Screen5);
      lv_obj_set_parent(ui_PanelMenu ,ui_Screen2);

but this dont work stable. Primary after power on first call to this changing parrent corrupt screen. After this all work…

v 8.3.4 ESP32

Can you send a more complete example to reproduce the issue?