Fix error in new beacon handling that leads to overflow