fixed some stuff regarding iBeacon handler