fix subpage injected template