Fixed bugs with duplicate beacons getting added.