diff --git a/emulator.js b/emulator.js
index a7fda8c..ee135b2 100644
--- a/emulator.js
+++ b/emulator.js
@@ -100,7 +100,7 @@ class Screen{
     make_buffer(){
         // Create a canvas element
         var buffer = document.createElement('canvas');
-        buffer.width = this,width;
+        buffer.width = this.width;
         buffer.height = this.height;
         
         // Get the drawing context