Fix the problem that can not find the pages file