Fixed nearby search query, but cannot compare Atoms