fix output error about syntax fail while parse template