Fixed a bug that would occasionally cause a crash when moving your cursor in and out of the window.