fixed beacons implementation bug