Fixed maximum distances again [skip CI]
Fixed maximum distances again [skip CI]


Former-commit-id: 8ede04f0aa3b89e238234c28ca5fe389ab85c885 [formerly 07398b3394d4bf2e4330373fd611194860c2ad36]
Former-commit-id: 6ef01010c2b14d17eb8e9fc30d8e0cafdc94a088
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine