Fixed bug on removal of a dataset.