Add flatten to [undefined] list