fix bulk_index().