Bugfix: check if pager is not null