update entity when insert an entity already exist in tree