fixed main beacon timeout finally