Fixed memory paging bug