Fix main memory addresses.