Fix Plone 4.0 compatibility