Fixed the issue with Two cpp files in templates.