prevent overflow when adding reference bit