fix #31151: crash on add of frame from linked part