Fix bugs in generation of blank table 1001 models.