fixed bug on findByLocation