fixed error deleting branch then maintaining its left branch