Fix paging bug in activities.