diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 6728b5a476d7ce6b5b7f5de75f1de861757d7764..2332ecf3f0ba2e9ae244d8e4c4c3ab057652f195 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -48,6 +48,8 @@ class PILGL(GraphicsLayer):
             self.screen_height = 600
 
             if platform.system() == "Windows" or platform.system() == "Linux":
+                self.screen_width = 9999
+                self.screen_height = 9999
                 for m in get_monitors():
                     self.screen_height = min(self.screen_height, m.height)
                     self.screen_width = min(self.screen_width, m.width)