Fix syntax error in paging subroutine.