Dual-monitor fix

Personal workaround to avoid crashing when using a dual-monitor setup.