Fixing bugs in pager that allow to move to other pages