Fix a little bug where tools got selected twice in a row.