Fix TE editor update display and deleted TE handling