fixed problem when unplugging beacon