fix inpath and page_path glitch