Fix bugs on the legacy compiler related to memory pages break
Should correctly be handling memory paging now