Fix bulk indexing

This fix makes bulk indexing work again.