diff --git a/lib/private/Avatar/Avatar.php b/lib/private/Avatar/Avatar.php
index 5a91a09b4bf068ce1381f6d2fa1b18f0fea5ea60..8f8e5e449cc67cf7aa67b4900914a7c57daeea71 100644
--- a/lib/private/Avatar/Avatar.php
+++ b/lib/private/Avatar/Avatar.php
@@ -133,7 +133,7 @@ abstract class Avatar implements IAvatar {
 		$bgRGB = $this->avatarBackgroundColor($userDisplayName);
 		$bgHEX = sprintf("%02x%02x%02x", $bgRGB->r, $bgRGB->g, $bgRGB->b);
 		$text = $this->getAvatarText();
-		$toReplace = ['{size}', '{fill}', '{text}'];
+		$toReplace = ['{size}', '{fill}', '{letter}'];
 		return str_replace($toReplace, [$size, $bgHEX, $text], $this->svgTemplate);
 	}