Fix issue loading content for custom pages