fix mem physical address calculation