fix batching for Plone>4.2