Recalculated memory addresses and page sizes for on-demand paging; still running into memset errors