Fixing a small bug in the memory loads.