Remove update of table_group from allocation and fix logic for tablegroup when updating targets..