fixed string error with template