fix isBeacon method in Map class