made the setting of attribute tables somewhat safer. An attribute table must have the same number of records as the featurecount