fix thread editing