Compatibility with reversion >= 1.8.

fixes #497