correct some problems in the PageMap