fix physical memory detection