fixed an issue when there are no pager items