fix a bug for pager