Fix hidden threads deleting