fix register tool