fix: wrong build of parent array if no layout is specified