fixed a bug, that maximal number of currently processed documents had no
effect.