fix problem with multiple beacons in range