Fixed compatibility with Plone 4.2