Fix the hard-coded term number

Replace the hard-coded 201308 with the $termNum variable.