Fix duplicate ObjectTemplate creation
Fix typo
Remove unnecessary string duplication