fix delete buttom update root for ids.