fix current tool returned in get state