fix the flatmodel workaround to work both ways (load data from saved flat model)