fixed bug where target data sets were not being released correctly.