Fix a paging bug when views are re-used