Fixed a bug.
Need to force maximum distance when searching by elevation: if not, some queries freeze.