Fix tag array extraction.