fix string-template bug