Correct offset calculations in frame sync block.