It looks like the optiongroups recordset is defined to display all records, which means the pagination stuff doesn't make sense. You can either update the repeat region to show a set number of maximum records per page, or remove the pagination code to resolve this issue.