Fix model reading for Textual 5