Fix Delete function. Do not check root separately.