fixed memory remapping

don't know why it didn't work in the first place, now it does.