When clicking remove, remove the selected thread instead of the last thread.
When clicking remove, remove the selected thread instead of the last thread.