Fixing register and unregister for toolbar external tools