Fix delete() was not correctly setting root