fixed deprecation warnings about passing format in the template name