Fix the findBeacon implementation