Fixed a bug that prevented the root node from being deleted.