Fix a memory corruption bug causing beacons to have weird dimensions.