fixed bug with getting all pages not getting pages in subfolders