Build correct vector filled with undef nodes