fix paging bug when in edit mode