fix ibeacon bugs.