fix tool upgrade