Fix check for pager [Fixes #1231]