Fixed bulk processing

Fixes #1233