Fix bug of ABFBeacon lookup function.