Correct bad offset computing