Fixed a handful of small errors related to reading/writing models.