Fixing bug in Pager