fixed tool deletion