Bugfix: Update bucket_index if reordering node.