Made sure that when a dataset is deleted its variables are really deleted