fix retrieving of table information for loaded models