(#) Wrong results for range search (Issue #1343)