Fix #366 class delete tool removes also the related associations