diff --git a/projects/player/src/app/components/element-container/element-container.component.html b/projects/player/src/app/components/element-container/element-container.component.html
index 3044e523204610a132a85207ad3bee2daff4d766..d0257108c0c7e18926e8cbdcc52596d4ed360794 100644
--- a/projects/player/src/app/components/element-container/element-container.component.html
+++ b/projects/player/src/app/components/element-container/element-container.component.html
@@ -22,5 +22,5 @@
     [overlayOrigin]="overlayOrigin"
     [isMarkingBarOpen]="isMarkingBarOpen"
     [position]="markingBarPosition"
-    (applySelection)="applySelectiontoText($event.mode, $event.color)">
+    (applySelection)="applySelectionToText($event.mode, $event.color)">
 </app-floating-marking-bar>
diff --git a/projects/player/src/app/components/element-container/element-container.component.ts b/projects/player/src/app/components/element-container/element-container.component.ts
index 2ed25647367e45d5e138317613eb74dd062feaf1..ac2764576e2233ad7937c708674d97e55841beac 100644
--- a/projects/player/src/app/components/element-container/element-container.component.ts
+++ b/projects/player/src/app/components/element-container/element-container.component.ts
@@ -6,7 +6,6 @@ import {
 } from '@angular/forms';
 import { first, takeUntil } from 'rxjs/operators';
 import { Subject } from 'rxjs';
-import { ConnectedPosition } from '@angular/cdk/overlay';
 import {
   InputElement, UIElement, ValueChangeElement
 } from '../../../../../common/models/uI-element';
@@ -50,14 +49,6 @@ export class ElementContainerComponent implements OnInit {
 
   isMarkingBarOpen!: boolean;
   markingBarPosition: { top: number, left: number } = { top: 0, left: 0 };
-  positions: ConnectedPosition[] = [{
-    originX: 'start',
-    originY: 'top',
-    overlayX: 'start',
-    overlayY: 'top',
-    offsetX: 0,
-    offsetY: 0
-  }];
 
   private ngUnsubscribe = new Subject<void>();
 
@@ -103,7 +94,7 @@ export class ElementContainerComponent implements OnInit {
     this.subscribeForKeyboardEvents(this.elementComponent as TextFieldComponent | TextAreaComponent);
   }
 
-  applySelectiontoText(mode: 'mark' | 'delete', color: string): void {
+  applySelectionToText(mode: 'mark' | 'delete', color: string): void {
     TextMarker
       .applySelection(
         mode,
@@ -220,7 +211,7 @@ export class ElementContainerComponent implements OnInit {
         (mouseUp.ctrlKey)) {
         selection.removeAllRanges();
       } else if (this.selectedMode && this.selectedColor) {
-        this.applySelectiontoText(this.selectedMode, this.selectedColor);
+        this.applySelectionToText(this.selectedMode, this.selectedColor);
       } else if (!this.isMarkingBarOpen) {
         this.openMarkingBar(mouseUp, mouseDown);
       }
@@ -253,7 +244,7 @@ export class ElementContainerComponent implements OnInit {
           if (selection.active) {
             this.selectedColor = selection.color;
             this.selectedMode = selection.mode;
-            this.applySelectiontoText(selection.mode, selection.color);
+            this.applySelectionToText(selection.mode, selection.color);
           } else {
             this.selectedColor = null;
             this.selectedMode = null;