Fix a bug

Write template type explicitly