diff --git a/samples/charts/toolbar/custom-tool/src/app.component.html b/samples/charts/toolbar/custom-tool/src/app.component.html
index 2de5ec0b4..ef2cfac61 100644
--- a/samples/charts/toolbar/custom-tool/src/app.component.html
+++ b/samples/charts/toolbar/custom-tool/src/app.component.html
@@ -5,7 +5,7 @@
diff --git a/samples/charts/toolbar/custom-tool/src/app.component.ts b/samples/charts/toolbar/custom-tool/src/app.component.ts
index a3500632d..7f366536d 100644
--- a/samples/charts/toolbar/custom-tool/src/app.component.ts
+++ b/samples/charts/toolbar/custom-tool/src/app.component.ts
@@ -38,7 +38,7 @@ export class AppComponent implements AfterViewInit
}
public toolbarCustomIconOnViewInit(): void {
- var toolbar = this.Toolbar;
+ var toolbar = this.toolbar;
const icon = '';
toolbar.registerIconFromText("CustomCollection", "CustomIcon", icon);