fix inpath and page_path glitch
Merge pull request #212 from will123195/master

bug fix