Fixed to be compatible with Omeka 2.2.2.