fix 'mouse leave windows' issue