Fix model processing.