Fixes call to get subpages