Fixed bug with tool delete