diff --git a/dist/pdfParser.js b/dist/pdfParser.js
index 029187e1cb32490fbec671a3de93a684b4a703a4..d825649aabab381f648b9edf6e7e89ea2463cd79 100644
--- a/dist/pdfParser.js
+++ b/dist/pdfParser.js
@@ -58,7 +58,7 @@ class PDFparser {
                 const x = typeof coords[index + 1] !== "undefined"
                     ? parseFloat(coords[index + 1].x)
                     : null;
-                const y = typeof typeof coords[index + 1] !== "undefined"
+                const y = typeof coords[index + 1] !== "undefined"
                     ? parseFloat(coords[index + 1].y)
                     : null;
                 console.log(x, y);
diff --git a/src/pdfParser.ts b/src/pdfParser.ts
index c296df737e29102e1d2eaedd5db0f76d367eb59c..c1a93040773b065d6ccd9c558d0bf6563f703a6b 100644
--- a/src/pdfParser.ts
+++ b/src/pdfParser.ts
@@ -79,7 +79,7 @@ class PDFparser {
           : null;
 
       const y =
-        typeof typeof coords[index + 1] !== "undefined"
+        typeof coords[index + 1] !== "undefined"
           ? parseFloat(coords[index + 1].y)
           : null;