Fixes https://github.com/eprints/eprints/pull/113