fixed a bug in PageManager.popPagesTillSpecifiedPage(), which may pop all innocent pages expcept for the first one.