diff --git a/projects/common/components/geometry/geometry.component.ts b/projects/common/components/geometry/geometry.component.ts
index 7b832cb88be2d3ccb01a6c7a3a1afa5278906874..1bd788c59c687f742c05f5b5be4e920a5d425883 100644
--- a/projects/common/components/geometry/geometry.component.ts
+++ b/projects/common/components/geometry/geometry.component.ts
@@ -1,9 +1,10 @@
 import {
-  AfterViewInit, Component, EventEmitter, Input, Output
+  AfterViewInit, Component, ElementRef, EventEmitter, Input, Output, Renderer2
 } from '@angular/core';
 import { ElementComponent } from 'common/directives/element-component.directive';
 import { GeometryElement } from 'common/models/elements/geometry/geometry';
 import { ValueChangeElement } from 'common/models/elements/element';
+import { ExternalResourceService } from 'common/services/external-resource.service';
 
 declare const GGBApplet: any;
 
@@ -22,6 +23,12 @@ export class GeometryComponent extends ElementComponent implements AfterViewInit
   @Input() appDefinition!: string;
   @Output() elementValueChanged = new EventEmitter<ValueChangeElement>();
 
+  constructor(public elementRef: ElementRef,
+              private renderer: Renderer2,
+              private externalResourceService: ExternalResourceService) {
+    super(elementRef);
+  }
+
   ngAfterViewInit(): void {
     this.externalResourceService.initializeGeoGebra(this.renderer);
     this.externalResourceService.isGeoGebraLoaded().subscribe((isLoaded: boolean) => {
diff --git a/projects/common/directives/element-component.directive.ts b/projects/common/directives/element-component.directive.ts
index e0869b24f3044d70ccbbb50b86fed300b9077575..392d416d925f9d14fd7c3800db40db0cddb6486b 100644
--- a/projects/common/directives/element-component.directive.ts
+++ b/projects/common/directives/element-component.directive.ts
@@ -11,10 +11,7 @@ export abstract class ElementComponent implements AfterContentChecked {
   abstract elementModel: UIElement;
   project!: 'player' | 'editor';
 
-  constructor(public elementRef: ElementRef,
-              public sanitizer: DomSanitizer,
-              protected renderer: Renderer2,
-              protected externalResourceService: ExternalResourceService) {}
+  constructor(public elementRef: ElementRef) {}
 
   get domElement(): Element {
     return this.elementRef.nativeElement;