Workaround for https://github.com/mongoid/mongoid/issues/3489