Fixing a bug that made generated model specs not work.