fixed the bug where the illustrations got fucked up when the window wasn't in focus