Fixed #75 error in ${query?.pageNum.asDefault(1)}
Optimize code.