fixing window_width and window_height in core.py