Fix distance for ransack search