Fix bug in calculation of initial BG offsets.