Fixed case for the "findnearest" call