fixed deleting root case in deleteNode