fixed error in remove tree