fix crash and overwriting results while paging