fix bug with template user name replace