fix tool class error