diff --git a/README.md b/README.md
index f1c8e47d8d46d94e41d0fdd8b29db2373b5de802..b3464fba82c684a758d598bb30a36281d75a46fe 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ It needs be a *.php* file and has to be inside the Configuration folder **typo3c
 Additionally you need to make your registration file known in your **ext_localconf.php** file:
 
     // register mail templates
-    $GLOBALS['sgmail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php';
+    $GLOBALS['sg_mail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php';
 
 sg_mail will automatically parse valid configuration files of all extensions within your TYPO3 instance.
 
@@ -116,7 +116,7 @@ Example:
 
 	// get an instance of the service
 	/** @var MailTemplateService $mailService */
-	$mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', sg_example', ['username' => $username]);
+	$mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', 'sg_example', ['username' => $username]);
 	
 	$mailService->setFromName($this->settings['fromName']);
 	$mailService->setFromAddress($this->settings['fromEmail']);