fix crashes with parents without sub items.