Fixed summation bug in program offset