Fixes PHPCR-ODM bug