fix error when persist table and its nodegroup