Fixed a couple small bugs related to memory management of the sub DM in Field.