fix syntax error on template declaration