[FIX] Fix compile error for nested template.