Fix tree delete